package annotation.apt;

import annotation.base.ExtractInterface;
import framework.AbstractTest;
import utils.Log;

/**
 * Created by shane on 2018/5/31.
 */

@ExtractInterface("IMultiplier")
public class Multiplier extends AbstractTest {

    public int multiply(int x, int y) {
        int total = 0;
        for (int i = 0; i < x; i++) {
            total = add(total, y);
        }

        return total;
    }

    private int add(int x, int y) {
        return x+y;
    }


    @Override
    public void test(String[] args) {
        super.test(args);

        Multiplier m = new Multiplier();
        Log.vn("11*16=" + m.multiply(11, 16));
    }
}
